package com.print.ane;

import java.util.HashMap;
import java.util.Map;

import com.adobe.fre.FREContext;
import com.adobe.fre.FREFunction;
import com.print.ane.funs.CheckPrintShare;
import com.print.ane.funs.InstallApp;
import com.print.ane.funs.PrintFile;

public class PrintContext extends FREContext {
	
	
	private Map<String, FREFunction> funMap = null;

	@Override
	public void dispose() {
		
	}

	@Override
	public Map<String, FREFunction> getFunctions() {
		if(funMap == null){
			funMap = new HashMap<String, FREFunction>();
			funMap.put("check", new CheckPrintShare());
			funMap.put("install", new InstallApp());
			funMap.put("printfile", new PrintFile());
		}
		return funMap;
	}

}
